package kr.hkit.androidproject_caloriecheck;

import kr.hkit.androidproject_caloriecheck.R;
import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.util.Log;

public class Tablistener implements ActionBar.TabListener {
	private Fragment mFragment;
	
	public Tablistener(Fragment mFragment) {
		super();
		this.mFragment = mFragment;
	}

	public void onTabSelected(Tab tab, FragmentTransaction ft) {
		ft.add(R.id.frame, mFragment, "tag");
	}

	public void onTabUnselected(Tab tab, FragmentTransaction ft) {
		ft.remove(mFragment);
	}

	public void onTabReselected(Tab tab, FragmentTransaction ft) {
	}
}
